import time
from selenium import webdriver
from selenium.webdriver.common.by import By

# 获取dr
dr = webdriver.Chrome()
# 打开网页 file:///C:/Users/Administrator/Desktop/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E7%BD%91%E9%A1%B5/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E7%BD%91%E9%A1%B5/%E6%B3%A8%E5%86%8CA.html
dr.get("file:///C:/Users/Administrator/Desktop/自动化测试网页/自动化测试网页/注册A.html")
# 最大化网页
dr.maximize_window()
time.sleep(2)
# 改变窗口大小
dr.set_window_size(500,500)
time.sleep(2)
# 移动窗口位置
dr.set_window_position(300,300)
time.sleep(3)